module.exports = {
  framework: 'react',
  typescript: true,
  rules: {
    pages: {
      transformLifecycle: true,
      transformData: true,
      transformMethods: true,
    },
    components: {
      transformProps: true,
      transformEvents: true,
      transformSlots: true,
    },
    apis: {
      transformWxAPI: true,
      customAPIMapping: {
        'wx.navigateTo': 'Taro.navigateTo',
        'wx.request': 'Taro.request',
        'wx.showToast': 'Taro.showToast',
        'wx.showModal': 'Taro.showModal',
        'wx.getSystemInfo': 'Taro.getSystemInfo',
      },
    },
    styles: {
      transformWXSS: true,
      transformCSSVars: true,
    },
  },
  output: {
    generateTypes: true,
    generateDocs: true,
    prettier: true,
  },
  ignore: [
    'node_modules/**',
    'dist/**',
    'build/**',
    '**/*.test.*',
    '**/*.spec.*',
  ],
} 